function Get-InsightOnPremParameters {
    [CmdletBinding()]
    [OutputType('Parameters')]
    param ([Parameter(Mandatory = $true)][Parameters]$Parameters)


    # Give the user a path to the bacpac file. Tell user to restore the bacpac and create a user on that database.
    $bacPacPath = Get-BacPac -ProjectFolder $Parameters.LSInsight.ProjectFolder
    Write-Host # Newline.
    Write-Host 'A database bacpac file has been downloaded to this file path:'
    Write-Host $bacPacPath -ForegroundColor 'Yellow'
    Write-Host '- Please use Microsoft SQL Server Management Studio (SSMS) to restore the LS Insight database from the bacpac file. Right click on the "Databases" folder and select "Import Data-tier Application...".'
    Write-Host '- Create a SQL login with read privileges to the new LS Insight database.'

    do {
        $answer = Read-Host -Prompt "Write 'y' when you have finished these steps"
    } while ($answer -inotin @('y', 'yes'))
    
    # Ask for server name.
    $Parameters.LSInsight.Server.Name = Get-InsightOnPremServerName -ServerName $Parameters.LSInsight.Server.Name -ConfirmAll $Parameters.ConfirmAll
    $Parameters.LSInsight.Server.FullyQualifiedDomainName = $Parameters.LSInsight.Server.Name

    # Ask for LS Insight database name.
    $Parameters.LSInsight.Database.Name = Get-InsightOnPremDatabaseName -DatabaseName $Parameters.LSInsight.Database.Name -ConfirmAll $Parameters.ConfirmAll
    
    # Ask for LS Insight login username and password.
    $Parameters.LSInsight.Server.Credential = Get-ServerCredential -Message "Please provide a username and password that has a read access on the LS Insight database. '$($Parameters.LSInsight.Server.Name)'." -UserName $Parameters.LSInsight.Server.UserName
    $Parameters.LSInsight.Server.UserName = $Parameters.LSInsight.Server.Credential.UserName
}